<?php

namespace App\Api\Logic\Validate;

class GoodsGroupValidate extends BaseValidate
{
    protected $rule = [
        'id'=>'required',
        'goods_num'=>'required',
        'goods_group_id'=>'required',
        'address_id'=>'required',
        'v_id'=>'required'
    ];

    protected $message = [
        'id.required'=>'请选择查看的套餐',
        'goods_num.required'=>'请输入商品的数量',
        'goods_group_id.required'=>'请输入商品id',
        'address_id.required'=>'请选择收货地址',
        'v_id.required'=>'请选择商品套餐'
    ];


    protected $scene = [
        'getGroupGoodsInfo'=>'id',
        'addGroupOrder'=>'goods_num,goods_group_id,v_id,address_id',

    ];
}
